Skip to content

Conversation

chariots-dev
Copy link

Does this show you the whole project, or just the modifications in the respective branches?

@chariots-dev
Copy link
Author

@jnc-odoo

Copy link

@jnc-odoo jnc-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job
just be carefull with the naming of the class
If you want to finish the tutorial, don't hesitate to ping me if you want review for the rest :)

from odoo import models, fields, api

# this is creating a table
class RealEstate(models.Model):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually we try to have the same as the name of the model so here EstateProperty

from odoo import models, fields, api

# this is creating a table
class RealEstate(models.Model):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it should be EstatePropertyOffer for example

Comment on lines +22 to +25
if not record.create_date:
record.date_deadline = fields.Date.add(value=fields.Date.today(), days=record.validity)
else:
record.date_deadline = fields.Date.add(value=record.create_date, days=record.validity)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just another way than the slides

Suggested change
if not record.create_date:
record.date_deadline = fields.Date.add(value=fields.Date.today(), days=record.validity)
else:
record.date_deadline = fields.Date.add(value=record.create_date, days=record.validity)
date = record.create_date or record.create_date
record.date_deadline = fields.Date.add(value=date, days=record.validity)

from odoo import models, fields

# this is creating a table
class RealEstate(models.Model):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same Comment here

<odoo>
<menuitem id="real_test_app" name="REAL TEST">
<menuitem id="second_level_menu" name="Estate">
<menuitem id="third_level_menuitem" name="Properties" action="estate_property_window"/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the naming of the id could be more explicit here like "estate_property_menu"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants